首页 web前端 H5教程 基于HTML5 的人脸识别活体认证的实现方法

基于HTML5 的人脸识别活体认证的实现方法

May 17, 2018 pm 03:28 PM
html5 人脸识别

近几年,人脸识别技术在身份认证领域的应用已经有了较多应用,例如:支付宝、招行的取款、养老金领取等方面,但在杜绝假冒、认证安全性等方面,目前还是一个比较需要进一步解决的课题,特别是在移动端的活体认证技术方面。
本文介绍了在HTML5 环境下可以采用clmtrackr.js 检测工具,结合人脸模型,实现人脸的跟踪检测。同时采用动作识别实现活体认证。
但本方案只能够在Firefox 或者Chrome中使用。并且只适合研究学习,实际场景中不太理想,需要进一步优化才能够应用。
如果有人有相关的技术,可以推荐介绍给我。

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

208

209

210

211

212

213

214

215

216

217

218

219

220

221

222

223

224

225

226

227

228

229

230

231

232

233

234

235

236

237

238

239

240

241

242

243

244

245

246

247

248

249

250

251

252

253

254

255

256

257

258

259

260

261

262

263

264

265

266

267

268

269

270

271

272

273

274

275

276

277

278

279

280

281

282

283

284

285

286

287

288

289

290

291

292

293

294

295

296

297

298

299

300

301

302

303

304

305

306

307

308

309

310

311

312

313

314

315

316

317

318

319

320

321

322

323

324

325

326

327

328

329

330

331

332

333

334

335

336

337

338

339

340

341

342

343

344

345

346

347

348

349

350

351

352

353

354

355

356

357

358

359

360

361

362

363

364

365

366

367

368

369

370

371

372

373

374

375

376

377

378

379

380

381

382

383

384

385

386

387

388

389

390

391

392

393

394

395

396

397

398

399

400

401

402

403

404

405

406

407

408

409

410

411

412

413

414

415

416

417

418

419

420

421

422

423

424

425

426

427

428

429

430

431

432

433

434

435

436

437

438

439

440

441

442

443

444

445

446

447

448

449

450

451

452

453

454

455

456

457

458

459

460

461

462

463

464

465

466

467

468

469

470

471

472

473

474

475

476

477

478

479

480

481

482

483

484

485

486

487

488

489

490

491

492

493

494

495

496

497

498

499

500

501

502

503

504

505

506

507

508

509

510

511

512

513

514

515

516

517

518

519

520

521

522

523

524

525

526

527

528

529

530

531

532

533

534

535

536

537

538

539

540

541

542

543

544

545

546

547

548

549

550

551

552

553

554

555

556

557

558

559

560

561

562

563

564

565

566

567

568

569

570

571

572

573

574

575

576

577

578

579

580

581

582

583

584

585

586

587

588

589

590

591

592

593

594

595

596

597

598

599

600

601

602

603

604

605

606

607

608

609

610

611

612

613

614

615

616

617

618

619

620

621

622

623

624

625

626

627

628

629

630

631

632

633

634

635

636

637

638

639

640

641

642

643

644

645

646

647

648

649

650

651

652

653

654

655

656

657

658

659

660

661

662

663

664

665

666

667

668

669

670

671

672

673

674

675

676

677

678

679

680

681

682

683

684

685

686

687

688

689

690

691

692

693

694

695

696

697

698

699

700

701

702

703

704

705

706

707

708

709

710

711

712

713

714

715

716

717

718

719

720

721

722

723

724

725

726

727

728

729

730

731

732

733

734

735

736

737

738

739

740

741

742

743

744

745

746

747

748

749

750

751

752

753

754

755

756

757

758

759

760

761

762

763

764

765

766

767

768

769

770

771

772

773

774

775

776

777

778

779

780

781

782

783

784

785

786

787

788

789

790

791

792

793

794

795

796

797

798

799

800

801

802

803

804

805

806

807

808

809

810

811

812

813

814

815

816

817

818

819

820

821

822

823

824

825

826

827

828

829

830

831

832

833

834

835

836

837

838

839

840

841

842

843

844

845

846

847

848

849

850

851

852

853

854

855

856

857

858

859

860

861

862

863

864

865

866

867

868

869

870

871

872

873

874

875

876

877

878

879

880

881

882

883

884

885

886

887

888

889

890

891

892

893

894

895

896

897

898

899

900

901

902

903

904

905

906

907

908

909

910

911

912

913

914

915

916

917

918

919

920

921

922

923

924

925

926

927

928

929

930

931

932

933

934

935

936

937

938

939

940

941

942

943

944

945

946

947

948

949

950

951

952

953

954

955

956

957

958

959

960

961

962

963

964

965

966

967

968

969

970

971

972

973

974

975

976

977

978

979

980

981

<!DOCTYPE html> 

 

    <!-- 

 

    Ideally these elements aren&#39;t created until it&#39;s confirmed that the  

 

    client supports video/camera, but for the sake of illustrating the  

 

    elements involved, they are created with markup (not JavaScript) 

 

    --> 

 

    <html> 

 

    <meta charset="GBK"

 

    <style> 

 

    #container { 

 

    position : relative; 

 

    

 

      

 

    #canvas { 

 

    position : absolute; 

 

    left : 0; 

 

    top : 0; 

 

    

 

    </style> 

 

    <script src="utils.js"></script> 

 

    <script src="clmtrackr.js"></script> 

 

    <script src="./models/model_pca_20_svm.js"></script> 

 

    <script src="numeric.js"></script> 

 

    <script src="ccv.js"></script> 

 

       

 

    <audio id="media">  

 

    你的浏览器不支持audio标签。 

 

    </audio> 

 

    <p id="container"

 

    <video id="video" width="600" height="400" autoplay >  

 

    您的浏览器不支持video标签 

 

    </video> 

 

    <canvas id="canvas" width="600" height="400"></canvas> 

 

    </p>     

 

       

 

    <button id="snap">Snap Photo</button> 

 

       

 

    <button id="start">Start</button> 

 

       

 

    <button id="showposition">显示</button> 

 

       

 

    <button id="hideposition">不显示</button> 

 

       

 

    <br/> 

 

       

 

    <button id="mouse">张嘴验证</button>  

 

    <button id="head">摇头验证</button>  

 

    <button id="eye">眨眼验证</button> 

 

       

 

       

 

    <p id="tip"

 

    </p> 

 

    <p id="result"

 

    </p> 

 

    <p id="msg"

 

    </p> 

 

       

 

    <p id="positions"

 

    </p> 

 

       

 

    <script> 

 

       

 

    var showpos=false; 

 

    // Put event listeners into place 

 

    //window.addEventListener("DOMContentLoaded", function() { 

 

       

 

    // Grab elements, create settings, etc. 

 

    var canvas = document.getElementById("canvas"), 

 

    context = canvas.getContext("2d"), 

 

    video = document.getElementById("video"), 

 

    videoObj = { "video": true }, 

 

    errBack = function(error) { 

 

    if (error.PERMISSION_DENIED) { 

 

    jAlert(&#39;用户拒绝了浏览器请求媒体的权限&#39;, &#39;提示&#39;); 

 

    } else if (error.NOT_SUPPORTED_ERROR) { 

 

    jAlert(&#39;对不起,您的浏览器不支持拍照功能,请使用其他浏览器&#39;, &#39;提示&#39;); 

 

    } else if (error.MANDATORY_UNSATISFIED_ERROR) { 

 

    jAlert(&#39;指定的媒体类型未接收到媒体流&#39;, &#39;提示&#39;); 

 

    } else

 

    jAlert(&#39;系统未能获取到摄像头,请确保摄像头已正确安装。或尝试刷新页面,重试&#39;, &#39;提示&#39;); 

 

    

 

    }; 

 

       

 

    // Put video listeners into place 

 

    if(navigator.getUserMedia) { // Standard 

 

       

 

    navigator.getUserMedia(videoObj, function(stream) { 

 

       

 

    video.src = stream; 

 

    video.play(); 

 

       

 

    }, errBack); 

 

       

 

    } else if(navigator.webkitGetUserMedia) { // WebKit-prefixed 

 

       

 

    try

 

       

 

    navigator.webkitGetUserMedia(videoObj, function(stream){  

 

    video.src = window.webkitURL.createObjectURL(stream); 

 

    video.play(); 

 

    }, errBack); 

 

       

 

    }catch(error){ 

 

    alert(error); 

 

    

 

       

 

    

 

    else if(navigator.mozGetUserMedia) { // Firefox-prefixed 

 

    navigator.mozGetUserMedia(videoObj, function(stream){ 

 

       

 

    video.src = window.URL.createObjectURL(stream); 

 

    video.play(); 

 

    }, errBack); 

 

    

 

       

 

       

 

       

 

    // Trigger photo take 

 

    document.getElementById("snap").addEventListener("click", function() { 

 

    context.drawImage(video, 0, 0, 600, 400); 

 

    }); 

 

    document.getElementById("start").addEventListener("click", function() { 

 

    startTrack(); 

 

    }); 

 

       

 

       

 

    document.getElementById("showposition").addEventListener("click", function() { 

 

    showpos=true; 

 

    }); 

 

       

 

    document.getElementById("hideposition").addEventListener("click", function() { 

 

    showpos=false; 

 

    }); 

 

       

 

    document.getElementById("mouse").addEventListener("click", function() { 

 

    alive_mouse(); 

 

    }); 

 

    document.getElementById("head").addEventListener("click", function() { 

 

    alive_head(); 

 

    }); 

 

       

 

    document.getElementById("eye").addEventListener("click", function() { 

 

    alive_eye(); 

 

    }); 

 

       

 

       

 

       

 

       

 

    //}, false); 

 

       

 

       

 

    </script> 

 

       

 

    <script> 

 

       

 

    ////////////////////////////////////////////////////////////////////////////// 

 

    //活体 

 

    var last_time=0;//时间因素 

 

    var last_nose_left=0; 

 

    var last_nose_top=0; 

 

       

 

    //张嘴动作 

 

    var is_mouse_ok=false;  

 

    var is_alive_mouse=false; 

 

    var last_dis_eye_norse=0; 

 

    var last_dis_mouse=0; 

 

    function alive_mouse(){ 

 

       

 

    var media = document.getElementById("media"); 

 

    media.src="mp3/alive_mouse.mp3"

 

    media.play(); 

 

       

 

    document.getElementById("tip").innerHTML="请张合嘴巴"

 

    document.getElementById(&#39;result&#39;).innerHTML = ""

 

       

 

    is_mouse_ok=false; 

 

    last_dis_mouse=0; 

 

    last_time=0; 

 

    last_dis_eye_norse=100000000;  

 

       

 

    is_alive_head=false; 

 

    is_alive_mouse=true; 

 

    is_alive_eye=false; 

 

       

 

    

 

    //摇头动作 

 

    var is_head_ok=false;  

 

    var is_alive_head=false; 

 

    var last_dis_left_right=100000000;  

 

    function alive_head(){ 

 

       

 

    var media = document.getElementById("media"); 

 

    media.src="mp3/alive_head.mp3"

 

    media.play(); 

 

       

 

    document.getElementById("tip").innerHTML="请在水平方向左右摇头"

 

    document.getElementById(&#39;result&#39;).innerHTML = ""

 

       

 

    is_head_ok=false; 

 

    last_dis_left_right=100000000;  

 

    last_time=0;  

 

    is_alive_head=true; 

 

    is_alive_mouse=false; 

 

    is_alive_eye=false; 

 

       

 

    

 

       

 

    //眨眼动作 

 

    var is_alive_eye=false; 

 

    var is_eye_ok = false; 

 

       

 

    function alive_eye(){ 

 

    var media = document.getElementById("media"); 

 

    media.src="mp3/alive_eye.mp3"

 

    media.play(); 

 

       

 

    document.getElementById("tip").innerHTML="请眨眼"

 

    document.getElementById(&#39;result&#39;).innerHTML = ""

 

       

 

    is_eye_ok=false; 

 

    last_dis_eye_norse=100000000;  

 

       

 

    last_nose_left=0; 

 

    last_nose_top=0; 

 

       

 

    last_time=0;  

 

       

 

    is_alive_head=false; 

 

    is_alive_mouse=false; 

 

    is_alive_eye=true; 

 

    

 

       

 

       

 

    function startTrack(){ 

 

       

 

    var videoInput = document.getElementById(&#39;video&#39;); 

 

       

 

    var ctracker = new clm.tracker(); 

 

    ctracker.init(pModel); 

 

    ctracker.start(videoInput); 

 

       

 

       

 

    var canvasInput = document.getElementById(&#39;canvas&#39;); 

 

    var cc = canvasInput.getContext(&#39;2d&#39;); 

 

    cc.lineWidth=3; 

 

       

 

    function drawLoop() { 

 

    //requestAnimationFrame(drawLoop); 

 

       

 

       

 

    cc.clearRect(0, 0, canvasInput.width, canvasInput.height); 

 

    //ctracker.draw(canvasInput ); 

 

    var positions = ctracker.getCurrentPosition(); 

 

    if (showpos && positions) { 

 

       

 

    for (var p = 0;p < positions.length;p++) { 

 

    positionString += "featurepoint "+p+" : ["+positions[p][0].toFixed(2)+","+positions[p][1].toFixed(2) +"]<br/>"

 

    

 

    document.getElementById(&#39;positions&#39;).innerHTML = positionString; 

 

       

 

       

 

    

 

    if(positions){ 

 

       

 

    for (var p =0;p < 71;p++) {     

 

    cc.beginPath(); 

 

    cc.arc(positions[p][0].toFixed(2), positions[p][1].toFixed(2),2, 0, Math.PI * 2, true); 

 

    cc.closePath(); 

 

    cc.fillStyle = &#39;#00FF00&#39;; 

 

    cc.fill(); 

 

    

 

       

 

       

 

    //cc.strokeStyle = &#39;red&#39;; 

 

       

 

    //0-14 轮廓 

 

    //7 下吧,最下 

 

       

 

    //2 最左边 

 

    //12 最右边 

 

       

 

       

 

    //15-22 眉毛 

 

       

 

       

 

    //23-27 左眼睛五个点 

 

    //27 左眼中间 

 

    //63-66 左眼四个点 

 

       

 

    //28-32 右眼睛五个点 

 

    //67-70 右眼四个点 

 

       

 

       

 

    //33-43 鼻子 

 

    //62 鼻中间 

 

       

 

       

 

    //44-61 嘴巴 

 

    //47 嘴巴上 

 

    //53 嘴巴下 

 

       

 

    /////////////////////////////////////////////////////////////////////////////////////////////// 

 

       

 

    //左眼中间 

 

    for (var p =27;p <=27;p++) {     

 

    cc.beginPath(); 

 

    cc.arc(positions[p][0].toFixed(2), positions[p][1].toFixed(2), 2, 0, Math.PI * 2, true); 

 

    cc.closePath(); 

 

    cc.fillStyle = &#39;red&#39;; 

 

    cc.fill(); 

 

    

 

       

 

    //鼻子中间 

 

    for (var p =62;p <=62;p++) {     

 

    cc.beginPath(); 

 

    cc.arc(positions[p][0].toFixed(2), positions[p][1].toFixed(2), 2, 0, Math.PI * 2, true); 

 

    cc.closePath(); 

 

    cc.fillStyle = &#39;red&#39;; 

 

    cc.fill(); 

 

    

 

    //嘴巴上 

 

    for (var p =57;p <=57;p++) {     

 

    cc.beginPath(); 

 

    cc.arc(positions[p][0].toFixed(2), positions[p][1].toFixed(2), 2, 0, Math.PI * 2, true); 

 

    cc.closePath(); 

 

    cc.fillStyle = &#39;red&#39;; 

 

    cc.fill(); 

 

    

 

    //嘴巴下 

 

    for (var p =60;p <=60;p++) {     

 

    cc.beginPath(); 

 

    cc.arc(positions[p][0].toFixed(2), positions[p][1].toFixed(2), 2, 0, Math.PI * 2, true); 

 

    cc.closePath(); 

 

    cc.fillStyle = &#39;red&#39;; 

 

    cc.fill(); 

 

    

 

    ////////////////////////////////////// 

 

    //head 

 

    if(is_alive_head==true){ 

 

    if(last_time==0 || (new Date().getTime()-last_time>500 && new Date().getTime()-last_time<10000 ) ){ 

 

    var xdiff_left = positions[62][0] - positions[2][0] ; 

 

    var ydiff_left = positions[62][1] - positions[2][1] ; 

 

    var dis_left = Math.pow((xdiff_left * xdiff_left + ydiff_left * ydiff_left), 0.5); 

 

       

 

    var xdiff_right = positions[12][0] - positions[62][0] ; 

 

    var ydiff_right = positions[12][1] - positions[62][1] ; 

 

    var dis_right = Math.pow((xdiff_right * xdiff_right + ydiff_right * ydiff_right), 0.5); 

 

       

 

    var xdiff_side = positions[12][0] - positions[2][0] ; 

 

    var ydiff_side = positions[12][1] - positions[2][1] ; 

 

    var dis_side = Math.pow((xdiff_side * xdiff_side + ydiff_side * ydiff_side), 0.5); 

 

       

 

       

 

    var dis_left_right = dis_left - dis_right; 

 

    document.getElementById(&#39;result&#39;).innerHTML = dis_left_right; 

 

       

 

       

 

    if(last_dis_left_right>0 && dis_left_right > dis_side/3){ 

 

       

 

    document.getElementById(&#39;result&#39;).innerHTML = "通过"

 

       

 

    is_head_ok=true; 

 

    is_alive_head=false; 

 

       

 

    

 

       

 

       

 

       

 

    last_dis_left_right=dis_left_right;  

 

    last_time = new Date().getTime(); 

 

       

 

    

 

    

 

       

 

    ///////////////////////////////////// 

 

    //mouse  

 

    if(is_alive_mouse==true){ 

 

    if(last_time==0 || (new Date().getTime()-last_time>500 && new Date().getTime()-last_time<10000 ) ){ 

 

       

 

    //研究和鼻子距离 

 

    var xdiff = positions[62][0] - positions[27][0] ; 

 

    var ydiff = positions[62][1] - positions[27][1] ;  

 

    var dis_eye_norse = Math.pow((xdiff * xdiff + ydiff * ydiff), 0.5); 

 

       

 

    //上嘴唇 和下嘴唇距离 

 

    var xdiff_mouse = positions[53][0] - positions[47][0] ; 

 

    var ydiff_mouse = positions[53][1] - positions[47][1] ;  

 

    var dis_mouse = Math.pow((xdiff_mouse * xdiff_mouse + ydiff_mouse * ydiff_mouse), 0.5); 

 

       

 

    //上次的眼鼻距离和这次的眼鼻距离差 

 

    var dn= Math.abs(dis_eye_norse-last_dis_eye_norse); 

 

       

 

    //上次的嘴距离和本次的嘴距离差 

 

    var dm=Math.abs(dis_mouse - last_dis_mouse); 

 

       

 

       

 

       

 

       

 

    //鼻子的位置确保变化不大 

 

    if(last_nose_left>0 && last_nose_top>0 

 

    && Math.abs(positions[62][0]-last_nose_left)<5 

 

    && Math.abs(positions[62][1]-last_nose_top)<5 

 

    ){ 

 

       

 

    document.getElementById(&#39;msg&#39;).innerHTML = dn; 

 

       

 

    if(last_dis_eye_norse>0 && dn < dis_eye_norse*1/50){  

 

       

 

    if(last_dis_mouse>0 && dm > dis_mouse/10){ 

 

       

 

    document.getElementById(&#39;result&#39;).innerHTML = "通过"

 

       

 

    is_alive_mouse=false; 

 

    is_mouse_ok=true; 

 

    

 

       

 

    

 

    

 

       

 

       

 

    last_dis_mouse = dis_mouse; 

 

    last_dis_eye_norse = dis_eye_norse; 

 

    last_time = new Date().getTime();  

 

       

 

    last_nose_left = positions[62][0]; 

 

    last_nose_top = positions[62][1]; 

 

       

 

    

 

    

 

       

 

    ///////////////////////////////////// 

 

    //eye  

 

    if(is_alive_eye==true){ 

 

    if(last_time==0 || (new Date().getTime()-last_time>10 ) ){ 

 

       

 

       

 

    var xdiff1 = positions[62][0] - positions[27][0] ; 

 

    var ydiff1 = positions[62][1] - positions[27][1] ;  

 

    var dis_eye_norse1 = Math.pow((xdiff1 * xdiff1 + ydiff1 * ydiff1), 0.5); 

 

       

 

    var xdiff2 = positions[62][0] - positions[32][0] ; 

 

    var ydiff2 = positions[62][1] - positions[32][1] ;  

 

    var dis_eye_norse2 = Math.pow((xdiff2 * xdiff2 + ydiff2 * ydiff2), 0.5); 

 

       

 

    var dis_eye_norse = (dis_eye_norse1 + dis_eye_norse2); 

 

       

 

       

 

       

 

    if(last_nose_left>0 && last_nose_top>0 

 

    && Math.abs(positions[62][0]-last_nose_left)<0.5 

 

    && Math.abs(positions[62][1]-last_nose_top)<0.5 

 

    ){ 

 

    document.getElementById(&#39;msg&#39;).innerHTML = Math.abs(dis_eye_norse - last_dis_eye_norse) - dis_eye_norse*1/20; 

 

       

 

    if(last_dis_eye_norse>0 && (Math.abs(dis_eye_norse - last_dis_eye_norse) > dis_eye_norse*1/20 ) ){ 

 

       

 

    document.getElementById(&#39;result&#39;).innerHTML = "通过"

 

       

 

    is_alive_eye=false; 

 

    is_eye_ok=true; 

 

       

 

    

 

    

 

       

 

       

 

    last_nose_left = positions[62][0]; 

 

    last_nose_top = positions[62][1]; 

 

       

 

    last_dis_eye_norse = dis_eye_norse; 

 

    last_time = new Date().getTime();  

 

       

 

    

 

       

 

       

 

    

 

       

 

       

 

    

 

       

 

    requestAnimationFrame(drawLoop); 

 

       

 

    

 

       

 

    drawLoop(); 

 

       

 

    

 

       

 

        

 

       

 

    </script> 

 

    </html>

登录后复制


 以上就是基于HTML5 的人脸识别活体认证的实现方法 的内容,更多相关内容请关注PHP中文网(www.php.cn)!


本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

Video Face Swap

Video Face Swap

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

<🎜>:泡泡胶模拟器无穷大 - 如何获取和使用皇家钥匙
3 周前 By 尊渡假赌尊渡假赌尊渡假赌
北端:融合系统,解释
3 周前 By 尊渡假赌尊渡假赌尊渡假赌
Mandragora:巫婆树的耳语 - 如何解锁抓钩
3 周前 By 尊渡假赌尊渡假赌尊渡假赌

热工具

记事本++7.3.1

记事本++7.3.1

好用且免费的代码编辑器

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

SublimeText3 Mac版

SublimeText3 Mac版

神级代码编辑软件(SublimeText3)

热门话题

Java教程
1667
14
CakePHP 教程
1426
52
Laravel 教程
1328
25
PHP教程
1273
29
C# 教程
1255
24
HTML 中的表格边框 HTML 中的表格边框 Sep 04, 2024 pm 04:49 PM

HTML 表格边框指南。在这里,我们以 HTML 中的表格边框为例,讨论定义表格边框的多种方法。

HTML 中的嵌套表 HTML 中的嵌套表 Sep 04, 2024 pm 04:49 PM

这是 HTML 中嵌套表的指南。这里我们讨论如何在表中创建表以及相应的示例。

HTML 左边距 HTML 左边距 Sep 04, 2024 pm 04:48 PM

HTML 左边距指南。在这里,我们讨论 HTML margin-left 的简要概述及其示例及其代码实现。

HTML 表格布局 HTML 表格布局 Sep 04, 2024 pm 04:54 PM

HTML 表格布局指南。在这里,我们详细讨论 HTML 表格布局的值以及示例和输出。

HTML 输入占位符 HTML 输入占位符 Sep 04, 2024 pm 04:54 PM

HTML 输入占位符指南。在这里,我们讨论 HTML 输入占位符的示例以及代码和输出。

HTML 有序列表 HTML 有序列表 Sep 04, 2024 pm 04:43 PM

HTML 有序列表指南。在这里我们还分别讨论了 HTML 有序列表和类型的介绍以及它们的示例

HTML onclick 按钮 HTML onclick 按钮 Sep 04, 2024 pm 04:49 PM

HTML onclick 按钮指南。这里我们分别讨论它们的介绍、工作原理、示例以及各个事件中的onclick事件。

在 HTML 中移动文本 在 HTML 中移动文本 Sep 04, 2024 pm 04:45 PM

HTML 中的文本移动指南。在这里我们讨论一下marquee标签如何使用语法和实现示例。

See all articles