本帖最后由 Python初学者8号 于 2022-1-4 15:06 编辑
我不是很懂网络编程,不知道是html还是javscpit啥啥三剑客,我只想做到:在我选中的一句话下面一行添加一句中文注释!!
先上代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=cp1252" />
<title>zone face group command</title>
<link rel="stylesheet" href="../../../../../../_static/itasca_chm.css" type="text/css" />
<link rel="stylesheet" href="../../../../../../_static/pygments.css" type="text/css" />
<link rel="top" title="FLAC3D 6.0 documentation" href="../../../../../../index.html" />
<link rel="up" title="Commands" href="zone_commands.html" />
<link rel="next" title="zone face hide command" href="cmd_zone.face.hide.html" />
<link rel="prev" title="zone face apply-remove command" href="cmd_zone.face.apply-remove.html" />
</head>
<body>
<div class="document">
<div class="documentwrapper">
<div class="body">
<div class="section" id="zone-face-group-command">
<h1><span class="fishcmd">zone face group</span> command</h1>
<p class="h2 rubric">Syntax</p>
<dl class="zoneface command">
<dt id="command:zone.face.group">
<span class="cmdname"><span class="pref">z</span><span class="null">o</span><span class="null">n</span><span class="null">e</span><span class="null"> </span></span><span class="cmdname"><span class="pref">f</span><span class="pref">a</span><span class="null">c</span><span class="null">e</span><span class="null"> </span></span><span class="cmdname"><span class="pref">g</span><span class="null">r</span><span class="null">o</span><span class="null">u</span><span class="null">p</span><span class="null"> </span></span><a class="reference internal" href="../../../../../../common/docproject/utilities/types.html#type:str" title="type:str"><span class="varstringbool"><span class="null">s</span><span class="null"> </span></span></a><span class="cmdkey"><span class="null">k</span><span class="null">e</span><span class="null">y</span><span class="null">w</span><span class="null">o</span><span class="null">r</span><span class="null">d</span><span class="null"> </span></span><span class="cmdkey"><span class="null">.</span><span class="null">.</span><span class="null">.</span><span class="null"> </span></span><span class="cmdopt"><<a class="reference internal" href="../../../../../../common/module/doc/manual/range_manual/range_commands/rangephrasereference.html#" title="range"><span class="token"><span class="null">r</span><span class="null">a</span><span class="null">n</span><span class="null">g</span><span class="null">e</span></span></a>></span><span class="null"> </span></dt>
<dd><div class="admonition-primary-keywords admonition">
<p class="first admonition-title">Primary keywords:</p>
<p class="last"><a class="reference internal" href="#kwd:zone.face.group.fluid" title="zone face group fluid">fluid</a> | <a class="reference internal" href="#kwd:zone.face.group.internal" title="zone face group internal">internal</a> | <a class="reference internal" href="#kwd:zone.face.group.mechanical" title="zone face group mechanical">mechanical</a> | <a class="reference internal" href="#kwd:zone.face.group.or" title="zone face group or">or</a> | <a class="reference internal" href="#kwd:zone.face.group.remove" title="zone face group remove">remove</a> | <a class="reference internal" href="#kwd:zone.face.group.slot" title="zone face group slot">slot</a> | <a class="reference internal" href="#kwd:zone.face.group.thermal" title="zone face group thermal">thermal</a></p>
</div>
<p>Adds a group name <a class="reference internal" href="../../../../../../common/docproject/utilities/types.html#type:str" title="type:str"><span class="varstringbool"><span class="null">s</span></span></a> to zone faces included in the optional <a class="reference internal" href="../../../../../../common/module/doc/manual/range_manual/range_commands/rangephrasereference.html#" title="range"><tt class="xref fish fish-tok docutils literal"><span class="pre">range</span></tt></a>. Use of the group logic is described in <a class="reference internal" href="../../../../../../common/module/doc/manual/group_manual/group.html#group-manual"><span>Group</span></a>.
This command may take the form <a class="reference internal" href="#command:zone.face.group" title="command:zone face group"><tt class="xref fish fish-cmd docutils literal"><span class="pre">zone</span> <span class="pre">face</span> <span class="pre">group</span></tt></a> <a class="reference internal" href="../../../../../../common/docproject/utilities/types.html#type:str" title="type:str"><span class="varstringbool"><span class="null">"slotname = groupname"</span></span></a> ?quotation marks required, spaces at equals sign ignored ?where <a class="reference internal" href="../../../../../../common/docproject/utilities/types.html#type:str" title="type:str"><span class="varstringbool"><span class="null">slotname</span></span></a> is the slot assignment and <a class="reference internal" href="../../../../../../common/docproject/utilities/types.html#type:str" title="type:str"><span class="varstringbool"><span class="null">groupname</span></span></a> is the group name.</p>
<p><font color="#ff0000">A zone face may belong to many groups, up to a maximum of 128.</font> The <span class="cmdkey">group</span> <font color="#ff0000">range element can be used to select objects by group name.</font></p>
<p><font color="#ff0000">Both the group and the slot can be encoded into the single string</font> <a class="reference internal" href="../../../../../../common/docproject/utilities/types.html#type:str" title="type:str"><span class="varstringbool"><span class="null">s</span></span></a>. To do this use the composition 'slotname=groupname', where the name to the left of the equals sign will be the slot, and the name to the right will be the group.</p>
<blockquote>
<div>Note that by default only surface faces are modified. To select all faces use the <span class="cmdkey">internal</span> keyword described below.</div></blockquote>
<p>The following optional keywords are available:</p>
<dl class="keyword">
<dt id="kwd:zone.face.group.fluid">
<span class="cmdkey"><span class="pref">f</span><span class="null">l</span><span class="null">u</span><span class="null">i</span><span class="null">d</span><span class="null"> </span></span></dt>
<dd><p>Zones with a non-null fluid model are scanned to determine the surface faces. Applies only if <span class="cmdkey">internal</span> is not specified.</p>
</dd></dl>
<dl class="keyword">
<dt id="kwd:zone.face.group.internal">
<span class="cmdkey"><span class="pref">i</span><span class="null">n</span><span class="null">t</span><span class="null">e</span><span class="null">r</span><span class="null">n</span><span class="null">a</span><span class="null">l</span><span class="null"> </span></span></dt>
<dd><p>If specified, then the range looks at internal faces as well as surface faces.</p>
</dd></dl>
<dl class="keyword">
<dt id="kwd:zone.face.group.mechanical">
<span class="cmdkey"><span class="pref">m</span><span class="null">e</span><span class="null">c</span><span class="null">h</span><span class="null">a</span><span class="null">n</span><span class="null">i</span><span class="null">c</span><span class="null">a</span><span class="null">l</span><span class="null"> </span></span></dt>
<dd><p>Zones with a non-null mechanical model are scanned to determine the surface faces. Applies only if <span class="cmdkey">internal</span> is not specified.</p>
</dd></dl>
<dl class="keyword">
<dt id="kwd:zone.face.group.or">
<span class="cmdkey"><span class="pref">o</span><span class="null">r</span><span class="null"> </span></span></dt>
<dd><p>Cannot be used with <span class="cmdkey">internal</span>. By default, if more than one <span class="cmdkey">mechanical</span>, <span class="cmdkey">thermal</span> or <span class="cmdkey">fluid</span> keyword is given, then the zone needs to have <em>all</em> of those conditions to determine a surface face. In other words, if both <span class="cmdkey">mechanical</span> and <em>thermal</em> were given, then if the zone had a non-null mechanical model and a null thermal model it would be considered outside the surface. If the <span class="cmdkey">or</span> keyword is given, then it is considered inside the surface if any of those conditions has a non-null model.</p>
</dd></dl>
<dl class="keyword">
<dt id="kwd:zone.face.group.remove">
<span class="cmdkey"><span class="pref">r</span><span class="null">e</span><span class="null">m</span><span class="null">o</span><span class="null">v</span><span class="null">e</span><span class="null"> </span></span></dt>
<dd><p>The group is removed from the zone face if present. If the <span class="cmdkey">slot</span> keyword is used, then the group is only removed from that slot if present. Otherwise the group is removed from any slot it is found in.</p>
</dd></dl>
<dl class="keyword">
<dt id="kwd:zone.face.group.slot">
<span class="cmdkey"><span class="pref">s</span><span class="null">l</span><span class="null">o</span><span class="null">t</span><span class="null"> </span></span><a class="reference internal" href="../../../../../../common/docproject/utilities/types.html#type:str" title="type:str"><span class="varstringbool"><span class="null">s</span><span class="null"> </span></span></a></dt>
<dd><p>The group is assigned to the slot named <a class="reference internal" href="../../../../../../common/docproject/utilities/types.html#type:str" title="type:str"><span class="varstringbool"><span class="null">s</span></span></a>. If not supplied, the group is assigned to the default slot, which is the one named <a class="reference internal" href="../../../../../../common/docproject/utilities/types.html#type:str" title="type:str"><span class="varstringbool"><span class="null">default</span></span></a>.</p>
</dd></dl>
<dl class="keyword">
<dt id="kwd:zone.face.group.thermal">
<span class="cmdkey"><span class="pref">t</span><span class="null">h</span><span class="null">e</span><span class="null">r</span><span class="null">m</span><span class="null">a</span><span class="null">l</span><span class="null"> </span></span></dt>
<dd><p>Zones with a non-null thermal model are scanned to determine the surface faces. Applies only if <span class="cmdkey">internal</span> is not specified.</p>
</dd></dl>
</dd></dl>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
<span style="float: left; margin-left: 5px;">Was this topic helpful? <a class="internal reference" href ="http://www.itascacg.com/docs/helpfeedback/feedback.php?FLAC3D 6.0?zone face group command" target="_blank"> Let us know...</a></span>
<a href=../../../../../../index.html>FLAC3D 6.0</a>
<a href="../../../../../../common/docproject/utilities/sphinxhelp.html" style="text-decoration: none;">©</a>
2017, <a href="http://www.itascacg.com" target="_blank">Itasca Consulting Group, Inc.</a>
Updated: Jul 16, 2018.
</div>
</body>
</html>
<p>A zone face may belong to many groups, up to a maximum of 128. The <span class="cmdkey">group</span> range element can be used to select objects by group name.</p>
<p>Both the group and the slot can be encoded into the single string <a class="reference internal" href="../../../../../../common/docproject/utilities/types.html#type:str" title="type:str"><span class="varstringbool"><span class="null">s</span></span></a>. To do this use the composition 'slotname=groupname', where the name to the left of the equals sign will be the slot, and the name to the right will be the group.</p>我大概知道,可以直接写 <p>插入一段备注<p> 来搞,但是我不是很懂这里的比如 “The <span class="cmdkey">group</span>”是个啥子东西,
需求:咋按照下图的效果来写啊
附带请求,如何解决中文乱码和控制上下行距的问题
1. 用JS或jQuery修改备注
$("你要找的元素的特征").html("内容")/
$("你要找的元素的特征").text("内容")
添加的话
$("在哪个父级元素内添加").append("<p>内容<p>")
$("在哪个父级元素内的子元素后面添加").after("<p>内容<p>")
2. 中文乱码的问题,有可能是
<head>
<meta http-equiv="Content-Type" content="text/html; charset=cp1252" />
中的charset没设置正确
3. 控制上下行数可以通过
margin
padding
来控制
|