HTML strike标记(HTML5不支持)

本文概述

HTML <strike>标签用于在包含在其中的文本中划出一行。

注意:不要使用<strike>标记, 因为它已过时并且不受HTML5支持, 可以使用<del>, <s>或CSS来获得相同的结果。

句法

<strike>Your content here....</strike>

以下是有关HTML <strike>标记的一些规范

Display Inline
开始日期/结束日期 开始和结束标签
Usage Formatting

<!DOCTYPE html>
<html>
<head>
	<title>strike Tag</title>
</head>
<body>
 <h2>Example of strike tag</h2>
 <p><strike>This is not a valid paragraph</strike></p>
  <p>This is a valid paragraph</p>
</body>
</html>

立即测试

输出:

HTML警示标记

属性

特定于标签的属性:

<strike>标记不包含任何特定属性。

支持的浏览器

Element Chrome IE Firefox Opera Safari
<strike> Yes Yes Yes Yes Yes
微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_49868.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?